#ifndef LISTENER_H
#define LISTENER_H
#include <iostream>
#include <string>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include "../file.h"
#include <algorithm>
#include "../MySocket.h"
#include "../SocketException.h"
#include "dirent.h"
#include <sstream>
#include "../TransferedData.h"
#include "descwindow.h"
#include "sender.h"
#include <QThread>
#include <QObject>

using namespace std;
class Listener : public QObject
{
    Q_OBJECT
public:
    Listener(string dirn,string port);
public slots:
    int exec();
private:
    string dirn;
    string port;

};

#endif // LISTENER_H
